package com.jake.xpage.page;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public interface IPageAnimator {
    enum Type {
        PUSH, POP
    }
    void start(@NonNull Type type, @NonNull XPage frontPage, @Nullable XPage backPage, @NonNull OnAnimateListener listener);

    interface OnAnimateListener {
        void onStart();

        void onEnd();

    }
}
